package com.gitee.shigen.security.controller;


import com.gitee.shigen.common.msg.Result;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author shigenfu
 * @since 2024-01-21
 */
@RestController
@RequestMapping("/api/user")
public class UserController {

    @GetMapping
    public Result<String> getTest() {
        return Result.success("get");
    }

    @PostMapping
    public Result<String> postTest() {
        return Result.success("post");
    }

    @PutMapping
    public Result<String> putTest() {
        return Result.success("put");
    }

    @DeleteMapping
    public Result<String> deleteTest() {
        return Result.success("delete");
    }

}
